<?php
/**
 * Created by PhpStorm.
 * User: lyh
 * Date: 2017/3/20
 * Time: 20:31
 */
namespace Admin\Model;
use Think\Model;
class AdminModel extends Model{
    protected $_validate=array(
        array('account','','账号名称已存在',0,'unique',1)//新增字段或者修改时account字段不能为空
    );
}